from django.db.models.sql.query import RawQuery


def run():
    sql = f'SELECT * FROM books WHERE id > %s'
    params = (1, )
    raw_query = RawQuery(sql=sql, using='default', params=params)
    columns = raw_query.get_columns()
    print(columns)
    for res in raw_query:
        print(res)
